package com.terios.util;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;

import com.terios.R;
import com.terios.logic.MainService;

/**
 * Exit.java 2012-9-27 下午6:53:24
 * 
 * @author Wang Tengrui
 */
public class Exit
{
	public static void btexit(final Context context)
	{
		new AlertDialog.Builder(context)
				.setTitle("退出")
				.setIcon(R.drawable.dialog_info)
				.setMessage("确定退出客户端?")
				.setPositiveButton(R.string.ok,
						new DialogInterface.OnClickListener()
						{
							@Override
							public void onClick(DialogInterface dialog,
									int which)
							{
								MainService.exitApp(context);
							}
						}).setNegativeButton("取消", null).create().show();
	}

}
